<#assign viewUrl="${base}/">
 <#if (categoryId)??>
  <#assign viewUrl="${viewUrl}"+"cate--${categoryId}"+"/">	        	        
 </#if>
 <#if (keyWord)??>
  <#assign viewUrl="${viewUrl}"+"wd--${keyWord}"+"/">
 </#if>
 <#if (filterStr)??>
   <#if (filterStr?last_index_of("__view")!=-1)>
     <#assign length=filterStr?last_index_of("__view")>
     <#assign viewUrl="${viewUrl}"+"${filterStr?substring(0,length)}">
    <#else>
     <#assign viewUrl="${viewUrl}"+"${filterStr}">
   </#if>
 </#if>
  <#if (filterView)??>
   <script type="text/javascript"> 
    $.cookie("viewType","${filterView}",{expires:7,path:"/"});
   </script>   
  </#if>
<form name="sortForm" method="get" action="classify">
	<div class="sortbar">
	    <#if (viewType?default("")=="grid")>
	      <a href="${viewUrl}__view__filterView--grid/go" class="btn_gg_hl floatr" name="btnViewType"></a>
	      <a href="${viewUrl}__view__filterView--list/go" class="btn_list_nor floatr" name="btnViewType"></a>
	    <#else>
	       <a href="${viewUrl}__view__filterView--grid/go" class="btn_gg_nor floatr" name="btnViewType"></a>
	       <a href="${viewUrl}__view__filterView--list/go" class="btn_list_hl floatr" name="btnViewType"></a>
	    </#if>		
		<ul>
			<li><label>sort:</label><select option="4" name="filterSort"><option value="">Best Match</option><option value="asc" <#if (filterSort?default("")=="asc")>selected="selected"</#if> >Price Low-High</option><option value="desc" <#if (filterSort?default("")=="desc")>selected="selected"</#if>>Price High-Low</option></select></li>
	        <li><label>Price Range:</label> $<input type="text" class="text01" name="lowPrice" value="${lowPrice?default("")}"/> To $<input type="text"  class="text01" name="highPrice"  value="${highPrice?default("")}"/><a href="javascript:void(0);" id="update" class="blue0072c5" style="margin-left:10px;">update ></a></li>
			<li><label><input type="checkbox" name="filterFreeShipping"  value="${filterShipping?default("false")}" <#if (filterShipping?default("false")=="true")>checked="checked"</#if>>Free Shipping</label></li>
			<div class="clear"></div>
		</ul>
	</div>
</form>